package mx.com.sinformex.chat.core.server.impl;

import java.util.ArrayList;
import java.util.List;

import mx.com.sinformex.chat.core.client.IChatClient;
import mx.com.sinformex.chat.core.server.IChatRoom;

/**
 * @author Oscar Ivan Hernandez Ventura [ oscar at sinformex dot com dot mx]
 *
 * @version $ Id : ChatRoom.java , v 1.0 Aug 13, 2009 angellore $
 */
public class ChatRoom implements IChatRoom {

	private IChatClient moderator = null;
	public List<IChatClient> clients = new ArrayList<IChatClient>();
	
	public void setModerator(IChatClient client) {
		this.moderator = client;
	}

	public void joinClient(IChatClient client) {
		clients.add(client);
	}

	public void removeClient(IChatClient client) {
		clients.remove(client);
	}

}
